﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SnapBrowser
{
    public class WebItems : INotifyPropertyChanged
    {
        private string name;
        private string imagePath;
        private string url;

        public string Name
        {
            get { return name; }
            set { name = value; NotifyPropertyChanged("Name"); }
        }

        public string ImagePath
        {
            get { return imagePath; }
            set { imagePath = value; NotifyPropertyChanged("ImagePath"); }
        }

        public string Url
        {
            get { return url; }
            set { url = value; NotifyPropertyChanged("Url"); }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(string propName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propName));
            }
        }
        
    }
}
